package com.com.typhoon.view.resolver;

import com.com.typhoon.view.CsvView;
import org.springframework.lang.Nullable;
import org.springframework.web.servlet.View;
import org.springframework.web.servlet.ViewResolver;

import java.util.Locale;

/**
 * @author shuya | dongfeng.zdf@alibaba-inc.com
 * @description
 * @date 2018/10/23 下午2:06
 * @description
 * @modified by
 * @since V2.0.0
 */
public class CsvViewResolver implements ViewResolver {
    @Nullable
    @Override
    public View resolveViewName(String s, Locale locale) throws Exception {
        return new CsvView();
    }
}
